package com.jian.java9test;


import java.io.*;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author Jiange
 * @create 2021-03-20-15:29
 */
public class Person {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("localhost",8080);
        OutputStream outputStream = socket.getOutputStream();
        FileInputStream fileInputStream = new FileInputStream("");
        byte[] bytes = new byte[5];
        int read;
        while ((read = fileInputStream.read(bytes)) != -1){
            outputStream.write(bytes,0,read);
        }
        ServerSocket serverSocket = new ServerSocket(8080);
        Socket accept = serverSocket.accept();
        InputStream inputStream = accept.getInputStream();
        byte[] bytes1 = new byte[5];
        int jian;
        while ((jian=inputStream.read(bytes1)) != -1){

        }
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        ThreadPoolExecutor executor = (ThreadPoolExecutor) executorService;
        new URL("").openConnection().connect();
    }
}
class Jian{
    static String name = "jian";
}

enum Ge{
    Shuai("jian"),
    Lai("ge");
    private final String name;
    Ge(String name){
        this.name = name;
    }
}